package com.weixing.mall.provider.api.service;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.SysDictRPCFallback;
import com.weixing.mall.provider.api.model.vo.SysDictVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/2 17:36
 * @Modified By:
 */
@FeignClient(value ="mall-provider-cms",configuration = FeignRibbonClientAutoConfiguration.class,fallback = SysDictRPCFallback.class)
public interface SysDictRPC {

    @GetMapping(value = "/api/dict/getDictByCode")
    public Result<List<SysDictVo>> getDictByCode(@RequestParam(value = "dictGroupCode")String dictGroupCode);
}
